## Not run:
# suppressMessages(library(cubfits, quietly = TRUE))
#
# ### example dataset.
# y.scuo <- convert.y.to.scuo(ex.train$y)
# SCUO <- calc_scuo_values(y.scuo)$SCUO
# plotprxy(ex.train$phi.Obs, SCUO)
#
# ### yassour dataset.
# GM <- apply(yassour[, -1], 1, function(x) exp(mean(log(x[x != 0]))))
# phi.Obs <- GM / sum(GM) * 15000
# mean(log(phi.Obs))
# sd(log(phi.Obs))
# ret <- scuo.random(SCUO, meanlog = -0.441473, sdlog = 1.393285)
# plotprxy(ret, SCUO)
# ## End(Not run)
Run the code above in your browser using DataLab